'''
Created on 2017-6-20

@author: 24253
'''
from zs.zsqueue import zspathqueue

from zs.content.baseurlcontent import BaseUrlContent

import logging
# -*- coding: utf-8 -*-
class XiaomiHook(BaseUrlContent):
    
    __homeurl = None
    
    name = "xiaomi"
    
    def __init__(self,homeurl):
        self.__homeurl = homeurl
        print("启动 hook:"+self.name)
    
    
    

    def run(self):
        for i in range(0,11):
            zspathqueue.put(self.name, "https://s.taobao.com/search?data-key=s&data-value="+str(i*44)+"&ajax=true&_ksTS=1497949320246_1376&q=%E5%B0%8F%E7%B1%B36&imgfile=&js=1&stats_click=search_radio_all:1&initiative_id=staobaoz_20170620&ie=utf8&app=detailproduct&through=1&bcoffset=4&p4ppushleft=6,48" )